from rest_framework import generics
from rest_framework.permissions import IsAdminUser
from goods.models import SPU
from meiduo_admin.serializers.spus import SPUSimpleSerializer


class SpuView(generics.ListAPIView):
    # permission_classes = [IsAdminUser]
    queryset = SPU.objects.all()
    serializer_class = SPUSimpleSerializer
